package me.wpf.utils;

import java.io.IOException;
import java.util.Properties;

/**
 * Description: 配置文件对象
 *
 * @author 王朋飞
 * @create 2019/11/16
 */
public class ConfigPropertiesUtil {

    private static Properties myProp;

    static {
        myProp = new Properties();
        try {
            myProp.load(ConfigPropertiesUtil.class.getResourceAsStream("/hive.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    /**
     * 返回config.properties的配置对象
     *
     * @return Properties config.properties的配置对象
     * @author yore
     * @Date 2017/12/26 14:22
     */
    public static Properties getConfigProperties() {
        return myProp;
    }

}
